x86/traps: move {un,}register_guest_nmi_callback to pv/callback.c
authorWei Liu <wei.liu2@citrix.com>
Mon, 26 Jun 2017 14:54:51 +0000 (15:54 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 28 Jun 2017 10:56:52 +0000 (11:56 +0100)
commit635af64d4f449cbbcc24f0abeef5095cc479e9b4
treef14384a187d0ebb1363197ec7befcb10ddda2926
parent0e97a5b6f932f4dab3a8cedaf651fe62f6cd533d
x86/traps: move {un,}register_guest_nmi_callback to pv/callback.c

Move these helper functions along side their users. Now all users of
these functions are within the same file, make them static.

Take the chance to change v to curr and remove some unneeded
parentheses.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/pv/callback.c
xen/arch/x86/traps.c
xen/include/asm-x86/nmi.h